package com.zang.blogz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 朵橙i
 * @since 2022-06-21
 */
@Getter
@Setter
@TableName("tb_website_config")
@ApiModel(value = "WebsiteConfig对象", description = "")
public class WebsiteConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("微信支付码")
    @TableField("wechat_pay_code")
    private String wechatPayCode;

    @ApiModelProperty("gitee地址")
    @TableField("gitee")
    private String gitee;

    @ApiModelProperty("github地址")
    @TableField("github")
    private String github;

    @ApiModelProperty("昵称")
    @TableField("name")
    private String name;

    @ApiModelProperty("欢迎语")
    @TableField("welcome_you")
    private String welcomeYou;

    @ApiModelProperty("二级欢迎语")
    @TableField("welcome_you_two")
    private String welcomeYouTwo;

    @ApiModelProperty("个性签名")
    @TableField("individuality_signature")
    private String individualitySignature;

    @ApiModelProperty("备案号")
    @TableField("record")
    private String record;

    @TableField(value = "view_count")
    @ApiModelProperty(value = "博客总访客")
    private Long viewCount;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date updateTime;

    @TableField(value = "admin_avatar")
    private String adminAvatar;


}
